Comment on After upgrade to Big Sur git stopped working I had the same issue on macOS 13 Ventura and this solved the issue. However, the correct command is sudo xcode-select --switch /Library/Developer/CommandLineTools So --switch instead of -switch. Developer Tools & Services Xcode Oct ’22